#include "includes.h"

PS_PROP_LIST pstProp_list_manu = NULL;
PS_PROP_LIST pstProp_list_conf = NULL;


static PS_PROP_LIST prop_add_list(PS_PROP_LIST pstHead, PS_PROP_LIST pstAdd)
{
	PS_PROP_LIST *ppstTemp;
	
	if (pstHead == NULL)
	{
		pstHead = pstAdd;
		pstHead->pnext = NULL;
		return pstHead;
	}
	ppstTemp = &pstHead->pnext;
	while (*ppstTemp)
	{
		ppstTemp = &(*ppstTemp)->pnext;
	}
	*ppstTemp = pstAdd;
	pstAdd->pnext = NULL;
	return pstHead;
}

int add_manu_list(PS_PROP_LIST pstList)
{
	pstProp_list_manu = prop_add_list(pstProp_list_manu, pstList);
	return 0;
}

int add_conf_list(PS_PROP_LIST pstList)
{
	pstProp_list_conf = prop_add_list(pstProp_list_conf, pstList);
	return 0;
}

